<?php

return CMap::mergeArray(
	require(dirname(__FILE__).'/main.php'),
	array(
                'import'=>array('application.modules.srbac.controllers.SBaseController',),
		'components'=>array(
			'fixture'=>array(
				'class'=>'system.test.CDbFixtureManager',
			),
			/* uncomment the following to provide test database connection
			'db'=>array(
				'connectionString'=>'DSN for test database',
			),
			*/
                        'log'=>array(
                            'class'=>'CLogRouter',
                            'routes'=>array(
                                    array(
                                            'class'=>'CFileLogRoute',
                                            'levels'=>'error, warning',
                                            'levels'=>'trace, info',
                                            'categories'=>'system.*',
                                    ),
                                    // uncomment the following to show log messages on web pages

                                    array(
                                            'class'=>'CWebLogRoute',
                                    ),

                            ),
                        ),
                        'urlManager'=>array(
                            'showScriptName'=>true,
                            'urlFormat'=>'path',
                            'rules'=>array(
                                    '<controller:\w+>/<id:\d+>'=>'<controller>/view',
                                    '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                                    '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
                            ),
                        ),
                        
                        'authManager'=>array(
                            'class'=>'modules.srbac.componets.SDbAuthManager',
                            'connectionID'=>'db',
                            'itemTable'=>'items',
                            'assignmentTable'=>'assignment',
                            'itemChildTable'=>'itemchildren',
                        )
		),
            
                'modules'=>array(
                    'srbac'=>array(
                        'userclass'=>'User',
                        'userid'=>'user_ID',
                        'username'=>'username',
                        'delimeter'=>'@',
                        'debug'=>true,
                        'pageSize'=>10,
                        'superUser' =>'Authority',
                        'css'=>'srbac.css',
                        'layout'=> 
                            'application.views.layouts.main',
                        'notAuthorizedView'=> 'srbac.views.authitem.unauthorized',
                    ),
                )
                
	)
);
